/**
 * 应用系统配置管理
 */
import request from '@/utils/request';

// 列表数据查询
export function querySystemManagementList(query: any): ApiPromise<ApiResponse> {
	return request({
		url: '/admin/modules/system/querySystemManagementList',
		method: 'post',
		data: query,
	});
}

// 新增系统
export function addSystemManagemen(query: any): ApiPromise<ApiResponse> {
	return request({
		url: '/admin/modules/system/addSystemManagemen',
		method: 'post',
		data: query,
	});
}

// 修改系统
export function editSystemManagemen(query: any): ApiPromise<ApiResponse> {
	return request({
		url: '/admin/modules/system/editSystemManagemen',
		method: 'post',
		data: query,
	});
}

// 根据id查询系统
export function querySystemManagemenById(id: any): ApiPromise<ApiResponse> {
	return request({
		url: '/admin/modules/system/querySystemManagemenById/' + id,
		method: 'get',
	});
}

// 批量删除
export function deleteSystemManagemenByIds(ids: any): ApiPromise<ApiResponse> {
	return request({
		url: '/admin/modules/system/deleteSystemManagemenByIds/' + ids,
		method: 'get',
	});
}

// 批量启用和停止系统
export function editSystemStatusByIds(query: any): ApiPromise<ApiResponse> {
	return request({
		url: '/admin/modules/system/editSystemStatusByIds',
		method: 'post',
		data: query,
	});
}

// 查询系统所属域下拉项
export function querySystemDomainOptions(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/admin/modules/system/domain/querySystemDomainOptions',
		method: 'get',
		params: data,
	});
}
